package cn.italkcloud.cph.service;

import cn.italkcloud.cph.entity.VosServer;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * VOS服务器 服务类
 * </p>
 *
 * @author dominate
 * @since 2025-03-07
 */
public interface IVosServerService extends IService<VosServer> {

    boolean isOwner(int accountId, int id);

    List<VosServer> query(int accountId, String name, boolean forList);

    String getApiUrl(Integer id);

    Map<Integer, String> getApiUrlMap(Collection<Integer> ids);

    Map<Integer, String> getApiUrlMap();

    List<VosServer> getValid();

    Map<Integer, String> getNameMap(Collection<Integer> ids);
}
